package com.xycake.service;

import com.xycake.dao.CategoryMapper;
import com.xycake.dao.GoodsManageMapper;
import com.xycake.dao.GoodsMapper;
import com.xycake.entity.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Autowired
    private GoodsMapper goodsMapper;

    public List<Goods> selectGoodsById(Integer id) {
        return goodsMapper.selectCategoryById(id);
    }

}
